Large module update
This commit is contained in:
parent
492ae9d92a
commit
a61bfe3c50
18 changed files with 463 additions and 87 deletions
15
custom/default.nix
Normal file
15
custom/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ system ? builtins.currentSystem }:
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> { inherit system; };
|
||||
# pkgs = import (builtins.fetchTarball {
|
||||
# name = "nixos-unstable-2021-05-26";
|
||||
# url = "https://github.com/nixos/nixpkgs/archive/9b7fb215d4d8399772a4f3d6f00fab3747136f53.tar.gz";
|
||||
# sha256 = "02d1841j7jg161q7cwh7vryxhv7x3bmnhd1jczx14ggfa66vqfhm";
|
||||
# }) { inherit system; };
|
||||
callPackage = pkgs.lib.callPackageWith ( pkgs // self );
|
||||
self = {
|
||||
gallery-tagger = callPackage ./gallery-tagger {};
|
||||
};
|
||||
in self
|
||||
|
||||
23
custom/gallery-tagger/default.nix
Normal file
23
custom/gallery-tagger/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, stdenv,
|
||||
cargo,
|
||||
rustc,
|
||||
rustPlatform,
|
||||
gexiv2,
|
||||
glib,
|
||||
gcc,
|
||||
pkg-config
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
version = "0.1.2";
|
||||
pname = "gallery-tagger";
|
||||
nativeBuildInputs = [ cargo rustc gcc pkg-config ];
|
||||
buildInputs = [ gexiv2.dev glib.dev ];
|
||||
src = builtins.fetchGit {
|
||||
url = "git@gitlab.com:bertof/galllery-tagger.git";
|
||||
ref = "5389813e62dfa790cf20441242d8a7d89f345fa9";
|
||||
};
|
||||
doCheck = true;
|
||||
cargoSha256 = "sha256:0nskc778m8nj2v4qidq4jzrb3ac8yg9bjc1l546c1k984321k187";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue