nix: replace local derivation with nixpkgs derivation (#572)

This commit is contained in:
shadeyg56 2023-10-04 04:51:54 -05:00 committed by GitHub
parent 0c03b004bb
commit 7f9ced7bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 21 deletions

View File

@ -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": {

View File

@ -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" ];

View File

@ -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];
}