saneBackends: factor out common code into generic.nix
The git version was duplicated from the stable one and the two had
begun to diverge significantly. For example, commit
88d731925d fixed a supposedly real
bug — but only in the stable package.
Factor out the shared code to avoid trouble — or worse, subtle
differences or bugs — in future.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{ callPackage, fetchurl, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "1.0.25";
|
||||
src = fetchurl {
|
||||
sha256 = "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4";
|
||||
urls = [
|
||||
"http://pkgs.fedoraproject.org/repo/pkgs/sane-backends/sane-backends-${version}.tar.gz/f9ed5405b3c12f07c6ca51ee60225fe7/sane-backends-${version}.tar.gz"
|
||||
"https://alioth.debian.org/frs/download.php/file/4146/sane-backends-${version}.tar.gz"
|
||||
];
|
||||
curlOpts = "--insecure";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user