resholve: 0.9.0 -> 0.9.1

This commit is contained in:
Travis A. Everett 2023-11-29 00:49:58 -06:00 committed by Yt
parent b6c1354fde
commit 7bf3f335a3
5 changed files with 21 additions and 27 deletions

View file

@ -52,13 +52,13 @@ Here's a simple example of how `resholve.mkDerivation` is already used in nixpkg
resholve.mkDerivation rec {
pname = "dgoss";
version = "0.3.18";
version = "0.4.1";
src = fetchFromGitHub {
owner = "aelsabbahy";
owner = "goss-org";
repo = "goss";
rev = "v${version}";
sha256 = "01ssc7rnnwpyhjv96qy8drsskghbfpyxpsahk8s62lh8pxygynhv";
rev = "refs/tags/v${version}";
hash = "sha256-dpMTUBMEG5tDi7E6ZRg1KHqIj5qDlvwfwJEgq/5z7RE=";
};
dontConfigure = true;
@ -81,11 +81,12 @@ resholve.mkDerivation rec {
};
meta = with lib; {
homepage = "https://github.com/aelsabbahy/goss/blob/v${version}/extras/dgoss/README.md";
homepage = "https://github.com/goss-org/goss/blob/v${version}/extras/dgoss/README.md";
changelog = "https://github.com/goss-org/goss/releases/tag/v${version}";
description = "Convenience wrapper around goss that aims to bring the simplicity of goss to docker containers";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ hyzual ];
maintainers = with maintainers; [ hyzual anthonyroussel ];
};
}
```

View file

@ -36,14 +36,14 @@ rec {
# not exposed in all-packages
resholveBuildTimeOnly = removeKnownVulnerabilities resholve;
# resholve itself
resholve = callPackage ./resholve.nix {
resholve = (callPackage ./resholve.nix {
inherit (source) rSrc version;
inherit (deps.oil) oildev;
inherit (deps) configargparse;
inherit resholve-utils;
# used only in tests
resholve = resholveBuildTimeOnly;
};
});
# funcs to validate and phrase invocations of resholve
# and use those invocations to build packages
resholve-utils = callPackage ./resholve-utils.nix {

View file

@ -10,14 +10,9 @@
Notes on specific dependencies:
- if/when python2.7 is removed from nixpkgs, this may need to figure
out how to build oil's vendored python2
- I'm not sure if glibcLocales is worth the addition here. It's to fix
a libc test oil runs. My oil fork just disabled the libc tests, but
I haven't quite decided if that's the right long-term call, so I
didn't add a patch for it here yet.
*/
rec {
# binlore = callPackage ./binlore.nix { };
oil = callPackage ./oildev.nix {
inherit python27;
inherit six;

View file

@ -3,17 +3,11 @@
}:
rec {
version = "0.9.0";
rSrc =
# local build -> `make ci`; `make clean` to restore
# return to remote source
# if builtins.pathExists ./.local
# then ./.
# else
fetchFromGitHub {
owner = "abathur";
repo = "resholve";
rev = "v${version}";
hash = "sha256-FRdCeeC2c3bMEXekEyilgW0PwFfUWGstZ5mXdmRPM5w=";
};
version = "0.9.1";
rSrc = fetchFromGitHub {
owner = "abathur";
repo = "resholve";
rev = "v${version}";
hash = "sha256-hkLKQKhEMD1UQ9EunPmx5Tsh44q4+tYj820OXF2ueUo=";
};
}

View file

@ -121,13 +121,17 @@ rec {
cli = stdenv.mkDerivation {
name = "resholve-test";
src = rSrc;
dontBuild = true;
installPhase = ''
mkdir $out
cp *.ansi $out/
'';
doCheck = true;
buildInputs = [ resholve ];
nativeCheckInputs = [ coreutils bats python27 ];
nativeCheckInputs = [ coreutils bats ];
# LOGLEVEL="DEBUG";
# default path