nix: replace local derivation with nixpkgs derivation (#572)
This commit is contained in:
parent
0c03b004bb
commit
7f9ced7bfd
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1693355128,
|
||||
"narHash": "sha256-+ZoAny3ZxLcfMaUoLVgL9Ywb/57wP+EtsdNGuXUJrwg=",
|
||||
"lastModified": 1696261572,
|
||||
"narHash": "sha256-s8TtSYJ1LBpuITXjbPLUPyxzAKw35LhETcajJjCS5f0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a63a64b593dcf2fe05f7c5d666eb395950f36bc9",
|
||||
"rev": "0c7ffbc66e6d78c50c38e717ec91a2a14e0622fb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -4,19 +4,13 @@ python310Packages.buildPythonPackage rec {
|
|||
pname = "auto-cpufreq";
|
||||
inherit version;
|
||||
|
||||
# src = fetchFromGitHub {
|
||||
# owner = "AdnanHodzic";
|
||||
# repo = pname;
|
||||
# rev = "v${version}";
|
||||
# sha256 = "sha256-ElYzVteBnoz7BevA6j/730BMG0RsmhBQ4PNl9+0Kw4k=";
|
||||
# };
|
||||
src = ../.;
|
||||
|
||||
nativeBuildInputs = with pkgs; [ wrapGAppsHook gobject-introspection ];
|
||||
|
||||
buildInputs = with pkgs; [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = with python310Packages; [ requests pygobject3 click distro psutil setuptools (callPackage ./pkgs/setuptools-git-versioning.nix {})];
|
||||
propagatedBuildInputs = with python310Packages; [ requests pygobject3 click distro psutil setuptools setuptools-git-versioning ];
|
||||
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "auto_cpufreq" ];
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{ fetchPypi, python310Packages}:
|
||||
|
||||
python310Packages.buildPythonPackage rec {
|
||||
pname = "setuptools-git-versioning";
|
||||
version = "1.13.5";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "af9ad1e8103b5abb5b128c2db4fef99407328ac9c12f65d3ff9550c4bb39ad1c";
|
||||
};
|
||||
propagatedBuildInputs = with python310Packages; [ toml packaging];
|
||||
}
|
Loading…
Reference in New Issue