From 2cf91bc869ca38c67344b9e813e21f99a8c222f8 Mon Sep 17 00:00:00 2001 From: Mahmoud Badawy <75978552+Mahmoud-Yasser-18@users.noreply.github.com> Date: Sun, 18 May 2025 21:16:12 +0300 Subject: [PATCH 1/5] Update derivation.nix a minor fix. I'm having trouble using this flake somewhere else. --- pkgs/derivation.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/derivation.nix b/pkgs/derivation.nix index 57f1f6d..8a8a26a 100644 --- a/pkgs/derivation.nix +++ b/pkgs/derivation.nix @@ -53,7 +53,7 @@ buildPythonPackage rec { meta = with lib; { description = "OpenQuantum Design Compiler Infrastructure"; homepage = "https://github.com/OpenQuantumDesign/oqd-compiler-infrastructure"; - license = licenses.apache20; + license = licenses.asl20; maintainers = with maintainers; [ ]; }; } From b03a9327296fc82a2b510a716e20fa381405502a Mon Sep 17 00:00:00 2001 From: Mahmoud Badawy <75978552+Mahmoud-Yasser-18@users.noreply.github.com> Date: Sun, 18 May 2025 22:00:37 +0300 Subject: [PATCH 2/5] Update derivation.nix --- pkgs/derivation.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/derivation.nix b/pkgs/derivation.nix index 8a8a26a..6e7dd92 100644 --- a/pkgs/derivation.nix +++ b/pkgs/derivation.nix @@ -46,6 +46,7 @@ buildPythonPackage rec { mkdocstrings mkdocs-material mkdocstrings-python + setuptools ]; pythonImportsCheck = [ "oqd_compiler_infrastructure" ]; From 7102f1209f42330d8d22ed7ce053ce1c9b4eff1b Mon Sep 17 00:00:00 2001 From: Mahmoud Badawy Date: Mon, 19 May 2025 05:20:33 +0300 Subject: [PATCH 3/5] adding setuptools to the derivation --- pkgs/derivation.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/derivation.nix b/pkgs/derivation.nix index 6e7dd92..138bb1c 100644 --- a/pkgs/derivation.nix +++ b/pkgs/derivation.nix @@ -22,6 +22,7 @@ , mkdocs-material , mkdocstrings-python , mdx-truly-sane-lists +, setuptools }: buildPythonPackage rec { From 9ea0186801d21f3f21bcd43e5c82b8083decc222 Mon Sep 17 00:00:00 2001 From: Mahmoud Badawy Date: Mon, 19 May 2025 05:23:10 +0300 Subject: [PATCH 4/5] updating the flake --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4d1ec59..1e6fda3 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,9 @@ pythonPackages = python.pkgs; in { - packages.default = pythonPackages.callPackage ./pkgs/derivation.nix { }; + packages.default = pythonPackages.callPackage ./pkgs/derivation.nix { + inherit (pythonPackages) setuptools; + }; devShells.default = pkgs.mkShell { packages = with pkgs; [ From b64275515562ad18708737001d5f019d0c5f2109 Mon Sep 17 00:00:00 2001 From: Mahmoud Badawy Date: Tue, 20 May 2025 15:13:24 +0300 Subject: [PATCH 5/5] remove unneeded inherit --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 1e6fda3..4d1ec59 100644 --- a/flake.nix +++ b/flake.nix @@ -27,9 +27,7 @@ pythonPackages = python.pkgs; in { - packages.default = pythonPackages.callPackage ./pkgs/derivation.nix { - inherit (pythonPackages) setuptools; - }; + packages.default = pythonPackages.callPackage ./pkgs/derivation.nix { }; devShells.default = pkgs.mkShell { packages = with pkgs; [